package com.atguigu.gulimall.product.vo;

import com.atguigu.gulimall.product.entity.SkuImagesEntity;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;
import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

/**
 * 商品详情对应的Vo
 */
@Data
public class SkuItemVo {

    //1、sku基本信息  `pms_sku_info`
    private SkuInfoEntity info;

    //是否有货
    private Boolean hasStock =true;

    //2、sku的图片信息  pms_sku_images
    private List<SkuImagesEntity> Images;

    //3、当前sku对应的spu的销售属性组合。
    private List<SkuItemSaleAttrVo> saleAttr;

    //4、spu介绍
    private SpuInfoDescEntity desc;

    //5、spu规格参数信息
    private List<SpuItemAttrGroupVo> groupAttrs;

    //6、秒杀信息
    private SeckillInfoVo seckillInfo;

}
